﻿using System;
using System.Collections.Generic;

namespace CopyRightCodeCollector.Collectors {
    public class HeaderCollector : LineCollector {

        readonly int Lines;

        public HeaderCollector(string outputPath, int lines, Action<string, IEnumerable<string>> outputer) : base(outputPath, outputer) {
            this.Lines = lines;
        }

        public override void Add(string line) {
            if (this.Count >= this.Lines) return;
            base.Add(line);
        }
    }
}
